package com.woniu.core.controller;

import com.woniu.core.service.CoreUserService;
import com.woniu.util.utils.HttpResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class CoreUserController {
    @Autowired
    private CoreUserService coreUserService;

    @GetMapping("/selectUserByAccount")
    public HttpResult<?> selectUserByAccount(String account){
        return coreUserService.selectUserByAccount(account);
    }
}
